using UnityEditor;
using UnityEngine;
using PlistCS;
using System.Collections;
using System.Collections.Generic;
using System.Reflection;
using MZUnitySupport;

public class TestLoadingPlist : MonoBehaviour
{
	void Start()
	{
//		Debug.Log( this.ToString() + " " + MethodInfo.  + " haha" );
//		MZDebug.Assert( false, "AAAAA" );


//		string path = EditorUtility.OpenFilePanel( "Title", Application.dataPath, "plist" );
////		EditorUtility.DisplayDialog( "Test", "Your path: " + path, "ok" );
//
//		if( string.IsNullOrEmpty( path ) )
//		{
//			Debug.LogError( "path is nill" );
//		}
//
//		Dictionary<string, object> plist = (Dictionary<string, object>)Plist.readPlist( path );
//
////		if( System.OperatingSystem == System.PlatformID.MacOSX )
////		{
////			EditorUtility.DisplayDialog( "System", "your macOS", "ok" );
////		}
//
//		if( plist == null )
//			Debug.Log( "null" );
//		else
//			Debug.Log( plist.ToString() );
//
//		Debug.Log( plist[ "string" ].ToString() );
//
////		foreach( string key in pObject["frames"] )
////		{
////
////		}
//
////		Debug.Log( plist[ "frames" ].ToString() );
	}

	void Update()
	{

	}
}
